package org.eclipsercp.hyperbola;

import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;

public class MainView extends ViewPart {
	public static final String ID = "org.eclipsercp.hyperbola.view1"; // the ID needs to match the id set in the view's properties 
	public MainView() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public void createPartControl(Composite parent) {
		// TODO Auto-generated method stub
	
		Label label = new Label(parent, SWT.LEFT); //new up a Label widget  
		label.setText(" This is a test for label"); //set the label's text  
		
		Label label1 = new Label(parent, SWT.None); //new up a Label widget  
		label1.setText(" This is a test for label"); //set the label's text  
						
		Text nr1 = new Text(parent, SWT.BORDER);
		
		
		Button Button1 = new Button(parent, SWT.PUSH);  
		Button1.setText("Question1");  
		
		Button Button2 = new Button(parent, SWT.PUSH);  
		Button2.setText("Question2");  
		
		Button Button3 = new Button(parent, SWT.PUSH);  
		Button3.setText("Question3");  
		
		Button Button4 = new Button(parent, SWT.PUSH);  
		Button4.setText("Question4");  
		
		 GridLayoutFactory.fillDefaults().numColumns(4).spacing(5, 3).margins(5, 5).applyTo(parent);
	}

	@Override
	public void setFocus() {
		// TODO Auto-generated method stub

	}

}

